package com.yc.rh.entities;

public class ServicesGroupInfo {
	private int sgid;
	private String sgname;
	private String sgimgpath;
	private String sgclickpath;
	private String sgtype;
	private String text1;
	private String text2;
	private String text3;
	public int getSgid() {
		return sgid;
	}
	public void setSgid(int sgid) {
		this.sgid = sgid;
	}
	public String getSgname() {
		return sgname;
	}
	public void setSgname(String sgname) {
		this.sgname = sgname;
	}
	public String getSgimgpath() {
		return sgimgpath;
	}
	public void setSgimgpath(String sgimgpath) {
		this.sgimgpath = sgimgpath;
	}
	public String getSgclickpath() {
		return sgclickpath;
	}
	public void setSgclickpath(String sgclickpath) {
		this.sgclickpath = sgclickpath;
	}
	public String getSgtype() {
		return sgtype;
	}
	public void setSgtype(String sgtype) {
		this.sgtype = sgtype;
	}
	public String getText1() {
		return text1;
	}
	public void setText1(String text1) {
		this.text1 = text1;
	}
	public String getText2() {
		return text2;
	}
	public void setText2(String text2) {
		this.text2 = text2;
	}
	public String getText3() {
		return text3;
	}
	public void setText3(String text3) {
		this.text3 = text3;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((sgclickpath == null) ? 0 : sgclickpath.hashCode());
		result = prime * result + sgid;
		result = prime * result
				+ ((sgimgpath == null) ? 0 : sgimgpath.hashCode());
		result = prime * result + ((sgname == null) ? 0 : sgname.hashCode());
		result = prime * result + ((sgtype == null) ? 0 : sgtype.hashCode());
		result = prime * result + ((text1 == null) ? 0 : text1.hashCode());
		result = prime * result + ((text2 == null) ? 0 : text2.hashCode());
		result = prime * result + ((text3 == null) ? 0 : text3.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ServicesGroupInfo other = (ServicesGroupInfo) obj;
		if (sgclickpath == null) {
			if (other.sgclickpath != null)
				return false;
		} else if (!sgclickpath.equals(other.sgclickpath))
			return false;
		if (sgid != other.sgid)
			return false;
		if (sgimgpath == null) {
			if (other.sgimgpath != null)
				return false;
		} else if (!sgimgpath.equals(other.sgimgpath))
			return false;
		if (sgname == null) {
			if (other.sgname != null)
				return false;
		} else if (!sgname.equals(other.sgname))
			return false;
		if (sgtype == null) {
			if (other.sgtype != null)
				return false;
		} else if (!sgtype.equals(other.sgtype))
			return false;
		if (text1 == null) {
			if (other.text1 != null)
				return false;
		} else if (!text1.equals(other.text1))
			return false;
		if (text2 == null) {
			if (other.text2 != null)
				return false;
		} else if (!text2.equals(other.text2))
			return false;
		if (text3 == null) {
			if (other.text3 != null)
				return false;
		} else if (!text3.equals(other.text3))
			return false;
		return true;
	}
	public ServicesGroupInfo(int sgid, String sgname, String sgimgpath,
			String sgclickpath, String sgtype, String text1, String text2,
			String text3) {
		super();
		this.sgid = sgid;
		this.sgname = sgname;
		this.sgimgpath = sgimgpath;
		this.sgclickpath = sgclickpath;
		this.sgtype = sgtype;
		this.text1 = text1;
		this.text2 = text2;
		this.text3 = text3;
	}
	public ServicesGroupInfo() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	
}	
